package com.shungen.realapigateway.service;

import com.shungen.realapigateway.model.entity.User;

public interface AuthService {

    /**
     * 通过accessKey查询secretKey
     * @param accessKey
     * @return
     */
    String getSecretKeyByAccessKey(String accessKey);


    /**
     * 通过accessKey获取User对象
     * @param accessKey
     * @return
     */
    User getUserByAccessKey(String accessKey);


    /**
     * 扣除积分
     * @param id
     * @param price
     * @return
     */
    boolean subUserPoint(Long id, Long price);
}
